package com.shixun.hospital.controller;

import com.shixun.hospital.model.Hospital;
import com.shixun.hospital.service.HospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class HospitalController {
    @Autowired
    private HospitalService hospitalService;
    @GetMapping("listHospital")
    public List<Hospital> ListHospital()
    {
        return hospitalService.ListHospital();
    }
}
